{if $smarty.get.user_edit != '1'}    
    {foreach from=$user_table item=item}
        {$item.entryid} - {$item.name} - {$item.worldname} - <a href="./index.php?do=user&user_edit=1&userid={$item.entryid}">{$lang.edit}</a> - <a href="./index.php?do=user&user_del=1&userid={$item.entryid}" onclick="return confirm('{$lang.confirm_delete_user_1}{$item.name}{$lang.confirm_delete_user_2}')">{$lang.delete}</a><br />
    {/foreach}
{/if}    


{if $smarty.get.user_edit == '1'}
<form action="index.php?do=user&user_edit_save=1" method="post">



{$lang.group}:<br />
	{foreach from=$groups_table item=item key=key}
    	<label>{$item.name}<input {if $user_data.parentid == $item.entryid}checked="checked"{/if} name="group" type="radio" value="{$item.entryid}"  /></label><br />
	{/foreach}        

{$lang.user}:
	<input name="username" type="text" value="{$user_data.name}"/>
  <br />
  <br />  
    
    
{foreach from=$permissions_nodes_user item=item}
<input name="name" {if $user_data.childid == $item.entryid || $user_data.parentid == $item.entryid}checked="checked"{/if} type="checkbox" value="{$item.entryid}" /> - {$item.permstring} - {$item.description}<br />
{/foreach}

<hr />
{$lang.def_in_group}:<br />
{foreach from=$permissions_nodes_group item=item}
	{$item.permstring} - {$item.description}<br />
{/foreach}
</form>
{/if}